package com.chixing.work_05.computer;

public class Mainboard {
    private DmengVideoCard videoCard;
    private IntelCpu cpu;

    public Mainboard(){}

    public DmengVideoCard getVideoCard() {
        return videoCard;
    }

    public void setVideoCard(DmengVideoCard videoCard) {
        this.videoCard = videoCard;
    }

    public IntelCpu getCpu() {
        return cpu;
    }

    public void setCpu(IntelCpu cpu) {
        this.cpu = cpu;
    }

    @Override
    public String toString() {
        return "Mainboard{" +
                "videoCard=" + videoCard +
                ", cpu=" + cpu +
                '}';
    }
    public Mainboard(DmengVideoCard videoCard, IntelCpu cpu) {
        this.videoCard = videoCard;
        this.cpu = cpu;
    }
    public void run(){
        System.out.println("主板正在运行");
    }
    public void close(){
        System.out.println("主板已经停止");
    }
}
